package org.blog.service;

import java.util.List;

import org.blog.helper.Result;
import org.blog.model.ModelPassport;

public interface PassportService {
	
	
	/**
	 * 添加用户
	 * @param t
	 */
	public Result<?> addUser(ModelPassport t);
	
	/**
	 * 根据email获取用户
	 * @param t
	 * @return
	 */
	public Result<?> getUserByEmail(ModelPassport t);
	
	/**
	 * 根据username获取用户
	 * @param t
	 * @return
	 */
	public Result<?> getUserByUsername(ModelPassport t);
	
	
	/**
	 * 登录验证
	 * @param t
	 * @return
	 */
	public Result<?> auth(ModelPassport t);
	
	/**
	 * 修改密邮箱
	 * @param t
	 * @return
	 */
	public Result<?>  modifyEmail(ModelPassport t,ModelPassport passport);
	
	/**
	 * 修改密密码
	 * @param t
	 * @return
	 */
	public Result<?>  modifyPassport(ModelPassport t,ModelPassport passport);
	
	/**
	 * 获取所有注册人员
	 * 
	 * @param start
	 * @param end
	 * @return
	 */
	public Result<List<ModelPassport>> getLoginList(int page,ModelPassport passport);

	/**
	 * 修改人员等级
	 * 
	 * @param t
	 */
	public Result<?> modifyRole(ModelPassport t,ModelPassport passport);
	
}
